<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        function startTime(time) {
            return new Promise(function (resolve, reject) {
                setTimeout(resolve, time);
            });
        }
        let pro=startTime(2000);
        pro.then(function(){
            console.log(11);
            return startTime(3000);
        })
        .then(function(){
            console.log(22);
            return startTime(4000);
        })
        .then(function(){
            console.log(33);
            return startTime(2000);
        })
        .then(function(){
            console.log(44);
        });

        
    </script>
</body>

</html>